<!DOCTYPE>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="stylesheet" type="text/css" href="./css/login.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript" src="./js/login.js"></script>
</head>

<body>
<div id="login">
    <h1>Login</h1>
	<form method="post" action="./index.php">
        <p>
        	<label for="name">Username: </label>
            <input type="text" name="user" />
        </p>
        
        <p>
        	<label for="pwd">Password: </label>
            <input type="password" name="pass" />
        </p>
        
        <p>
        	<input type="submit" id="submit" value="Login" name="login" />
        </p>
    </form>
    <?php
    session_start();
    include ("php/smallauth/smallauth_include.php");
    login_log(login());
    ?>
    <div id="footer" style="text-align:left">
    </div>
</div>
</body>
</html>
